<#include "/component/datetime.html" />
<script type="text/javascript" src="${basePath}/js/lun/lun.js"></script>
<script>
	$(document).ready(function(){
		$('#form1').ajaxpager({target:'#list'});
		lun.init();
	});
</script>

<!-- 分级存储页面index -->
<div class="fe-index">
	<input type="hidden" value="" id="parentId" data=""/>
	<input type="hidden" value="" id="pool" />
	<input type="hidden" value="0" id="isqos" />
	<input type="hidden" value="0" id="isexpand" />
	<input type="hidden" value="0" id="isreduce" />
    <!-- “分级存储”标题 -->
    <div class="row">
        <div class="col-lg-12">
            <div class="fj-title"><h3>${title}</h3></div>
        </div>
    </div>
    <!-- “分级存储”标题end -->
    <form id="form1" action="${basePath}/cluster/lun/tree" method="post" class="form-horizontal">
    <!-- 搜索框 -->
    <div class="row fj-marginl">
        <div class="col-lg-4">
            <div class="form-group" style="width: 90%;">
                <label class="control-label" ><@spring.message code='storage.poolname'/>：</label>
                <select id="serachPoolName" class="form-control">
                    <option value=""><@spring.message code='warn.select'/></option>
					<#if poolList??>
					<#list poolList as item>
					<option value="${item.poolName!}">${item.poolName!}</option>
					</#list>
					</#if>
                </select>
            </div>
        </div>
        <div class="col-lg-4">
            <div class="form-group" style="width: 90%;">
                <label class="control-label"><@spring.message code='lun.type'/>：</label>
                <select id="serachType" class="form-control">
                    <option value=""><@spring.message code='warn.select'/></option>
					<option value="0"><@spring.message code='lunGroup.luns'/></option>
					<option value="1"><@spring.message code='lun.snapshot'/></option>
					<option value="2"><@spring.message code='lun.clone'/></option>
                </select>
            </div>
        </div>
        <div class="col-lg-4 ">
            <div class="fj-searchanniu">
                <ul>
                    <li><button id="search" class="btn btn-default"><@spring.message code='search.normal.text'/></button></li>
                    <!-- <li><button id="cleanAd" class="btn btn-default">清除</button></li> -->
                </ul>
            </div>
        </div>
    </div>
    <!-- 搜索框end -->
	</form>
    <!-- “分级存储”标题下的内容 -->
    <div class="row fj-margint" >
        <!-- 左侧内容 -->
        <div class="col-lg-4" >
            <div class="ibox">
                <!-- 按钮组和下拉框 -->
                <div class="ibox-title fj-angroup">
                    <ul>
                        <li><button class="btn btn-primary btn-sm" id="add"><@spring.message code='button.new'/></button></li>
                        <li><button class="btn btn-primary btn-sm" id="sync"><@spring.message code='lun.synchronize'/></button></li>
                    </ul>
                </div>
                <!-- 按钮和下拉框end -->
                <!-- 树 -->
                <div class="ibox-content fj-blog">
                	<ul id="tree"></ul>
                </div>
                <!-- 树end -->
            </div>
        </div>
        <!-- 左侧内容end -->
        <!-- 右侧输入及展示内容 -->
        <div class="col-lg-8 " id="info">
        </div>
        <!-- 右侧输入及展示内容end -->
    </div>
    <!-- “分级存储”标题下的内容end -->
</div>
<!-- 右侧内容处end -->
<form id="listMappedLunForm" action="${basePath}/mapping/hostsList" method="get"></form>
<form id="listHostForm"></form>
